package com.dxx.cloud.admin.module.request;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author duh
 * @create 2018/12/28 14:10

 **/
@Schema(description = "支付请求体")
@Data
public class PayRequest {

    @Schema(description="商户id",example="1")
    @NotNull
    private Long merId;

    @Schema(description="收钱",example="100")
    private BigDecimal receive;

    @Schema(description="找零",example="1.52")
    private BigDecimal change;

    @Schema(description="支付金额",example="1")
    @NotNull
    private BigDecimal fee;

    @Schema(description = "支付类型:1现金 2欠账 3银行卡 4其他 5存款 11门店微信二维码 12微信客户主扫 13微信客户被扫 14微信刷脸 21门店支付宝二维码 22支付宝客户扫商户 23支付宝商户扫客户 31易收宝客户扫商户 32易收宝商户扫客户 ",example = "1")
    @NotNull
    private Integer payType;

    @Schema(description="商户主动扫码时，扫出的客户付款id")
    private String authCode;

    @Schema(description="支付场景")
    @JsonIgnore
    private Integer payScene;

    @Schema(description="操作者",example="admin")
    private String operator;

    private String openId;

}
